#include <iostream>
#include <string>
#include <cmath>
using namespace std;

const int N = 1e6 + 10;

string str1,str2;
int a[N],b[N],c[N];
int la,lb,lc;

int main(){
	cin >> str1 >> str2;
	la = str1.size();
	lb = str2.size();
	lc = la + lb;
	for(int i = la - 1;i >= 0;i--){
		a[la - i - 1] = str1[i] - '0';
	}
	for(int i = lb - 1;i >= 0;i--){
		b[lb - i - 1] = str2[i] - '0';
	}
	for(int i = 0;i < la;i++){
		for(int j = 0;j < lb;j++){
			c[i + j] += a[i] * b[j];
		}
	}
	for(int i = 0;i < lc;i++){
		if(c[i] >= 10){
			c[i + 1] += c[i] / 10;
			c[i] %= 10;
		}
	}
	while(c[lc - 1] == 0&&lc > 1){
		lc--;
	}
	for(int i = lc - 1;i >= 0;i--){
		cout << c[i];
	}
	return 0;
}
